import { getCategory1ListApi, getCategory2ListApi, getCategory3ListApi } from '@/api/product/category'

const getDefaultState = () => {
  return {
    category1Id: 0,
    category2Id: 0,
    category3Id: 0,
    category1List: [],
    category2List: [],
    category3List: [],
  }
}
const state = getDefaultState()
const mutations = {
  getCategory1List: async () => {
    state.category1List = await getCategory1ListApi()
    console.log(state.category1List);
  }
};
const actions = {}
// const getter = {}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
